package com.example.demo1.requestModel;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel("请求")
@Data
public class categoriesReq {

    @ApiModelProperty("父亲ID")
    private Integer parentid;

    @Size(min = 1, max = 4, message = "名字长度在1~4")
    @ApiModelProperty(value = "目录名称", required = true)
    @NotNull
    @NotEmpty
    private String name;
}
